package org.jeecg.modules.data.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.data.entity.District;

/**
 * @Description: district
 * @Author: jeecg-boot
 * @Date:   2025-02-12
 * @Version: V1.0
 */
public interface DistrictMapper extends BaseMapper<District> {
    /**
     * 根据城市名称获取城市编码
     * @param cantCode
     */
    District getCityCode(String cantCode);

    /**
     * 根据区域名称获取区域编码
     * @param areaName
     */
    District getAreaCode(String areaName);

    /**
     * 根据编码获取父级区域信息
     * @param code
     * @return
     */
    District getParentDistrict(String code);
}
